package cate.common.table.activity.luckyblindbox.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.luckyblindbox.row.RandomRewardPoolRow;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class RandomRewardPoolSheet extends ESheet<RandomRewardPoolRow> {
    public Map<Integer, List<RandomRewardPoolRow>> groupMap;
    @Override
    public String getSheetName() {
        return "随机奖励池";
    }

    @Override
    protected void onLoaded() {
        super.onLoaded();
        groupMap = getList().stream().collect(Collectors.groupingBy(row -> row.pos));
    }
}
